.class public Lcom/alipay/android/app/net/HttpClient;
.super Ljava/lang/Object;


# instance fields
.field private mContext:Landroid/content/Context;

.field private mUrl:Ljava/lang/String;

.field private sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/alipay/android/app/net/HttpClient;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    iput-object p1, p0, Lcom/alipay/android/app/net/HttpClient;->mContext:Landroid/content/Context;

    iput-object p2, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    return-void
.end method

.method private getActiveNetworkInfo()Landroid/net/NetworkInfo;
    .locals 3

    const/4 v1, 0x0

    :try_start_0
    iget-object v0, p0, Lcom/alipay/android/app/net/HttpClient;->mContext:Landroid/content/Context;

    const-string v2, "connectivity"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-object v0, v1

    goto :goto_0
.end method

.method private getProxy()Lorg/apache/http/HttpHost;
    .locals 3

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/alipay/android/app/net/HttpClient;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isAvailable()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v1

    if-nez v1, :cond_0

    invoke-static {}, Landroid/net/Proxy;->getDefaultHost()Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Landroid/net/Proxy;->getDefaultPort()I

    move-result v2

    if-eqz v1, :cond_0

    new-instance v0, Lorg/apache/http/HttpHost;

    invoke-direct {v0, v1, v2}, Lorg/apache/http/HttpHost;-><init>(Ljava/lang/String;I)V

    :cond_0
    return-object v0
.end method

.method private getStatus(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    const/4 v2, -0x1

    const-string v0, " "

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    const-string v1, " "

    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v1

    if-eq v0, v2, :cond_0

    if-ne v1, v2, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_1
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method


# virtual methods
.method public getURL()Ljava/net/URL;
    .locals 3

    const/4 v1, 0x0

    :try_start_0
    new-instance v0, Ljava/net/URL;

    iget-object v2, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    invoke-direct {v0, v2}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-object v0, v1

    goto :goto_0
.end method

.method public getUrl()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    return-object v0
.end method

.method public sendSynchronousRequest(Ljava/util/ArrayList;Ljava/util/ArrayList;)Lcom/alipay/android/app/net/WebResponseData;
    .locals 6

    const/4 v1, 0x0

    :try_start_0
    invoke-virtual {p0, p1, p2}, Lcom/alipay/android/app/net/HttpClient;->sendSynchronousRequestAsHttpResponse(Ljava/util/ArrayList;Ljava/util/ArrayList;)Lorg/apache/http/HttpResponse;

    move-result-object v0

    invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v3

    invoke-static {v3}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;
    :try_end_0
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v4

    :try_start_1
    invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v0

    :try_start_2
    invoke-direct {p0, v0}, Lcom/alipay/android/app/net/HttpClient;->getStatus(Ljava/lang/String;)Ljava/lang/String;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_2 .. :try_end_2} :catch_1

    move-result-object v0

    move-object v2, v0

    :goto_0
    :try_start_3
    invoke-interface {v3}, Lorg/apache/http/HttpEntity;->getContentType()Lorg/apache/http/Header;

    move-result-object v0

    invoke-interface {v0}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/alipay/android/app/util/Utils;->getCharset(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0}, Lcom/alipay/android/app/util/Utils;->getContentType(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    new-instance v0, Lcom/alipay/android/app/net/WebResponseData;

    invoke-direct {v0, v4, v5, v3, v2}, Lcom/alipay/android/app/net/WebResponseData;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    :goto_1
    return-object v0

    :catch_0
    move-exception v0

    move-object v0, v1

    :goto_2
    move-object v2, v0

    goto :goto_0

    :catch_1
    move-exception v0

    new-instance v0, Lcom/alipay/android/app/net/WebResponseData;

    const-string v2, "sslerror"

    const-string v3, ""

    const-string v4, "UTF-8"

    invoke-direct {v0, v2, v3, v4, v1}, Lcom/alipay/android/app/net/WebResponseData;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :catch_2
    move-exception v0

    move-object v0, v1

    goto :goto_1

    :catch_3
    move-exception v2

    goto :goto_2
.end method

.method public sendSynchronousRequest(Ljava/lang/String;Ljava/util/ArrayList;)Ljava/lang/String;
    .locals 1

    :try_start_0
    invoke-virtual {p0, p1}, Lcom/alipay/android/app/net/HttpClient;->sendSynchronousRequestAsHttpResponse(Ljava/lang/String;)Lorg/apache/http/HttpResponse;

    move-result-object v0

    invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v0

    invoke-static {v0}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public sendSynchronousRequestAsHttpResponse(Ljava/lang/String;)Lorg/apache/http/HttpResponse;
    .locals 7

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/alipay/android/app/net/HttpClient;->getURL()Ljava/net/URL;

    move-result-object v2

    :try_start_0
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    if-nez v1, :cond_0

    invoke-static {}, Lcom/alipay/android/app/net/MspHttpClient;->newInstance()Lcom/alipay/android/app/net/MspHttpClient;

    move-result-object v1

    iput-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    :cond_0
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1}, Lcom/alipay/android/app/net/MspHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v1

    invoke-direct {p0}, Lcom/alipay/android/app/net/HttpClient;->getProxy()Lorg/apache/http/HttpHost;

    move-result-object v4

    const-string v5, "http.route.default-proxy"

    invoke-interface {v1, v5, v4}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    invoke-virtual {v2}, Ljava/net/URL;->getProtocol()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2}, Ljava/net/URL;->getPort()I

    move-result v1

    const/4 v4, -0x1

    if-ne v1, v4, :cond_1

    invoke-virtual {v2}, Ljava/net/URL;->getDefaultPort()I

    move-result v1

    :cond_1
    new-instance v4, Lorg/apache/http/HttpHost;

    invoke-virtual {v2}, Ljava/net/URL;->getHost()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v4, v2, v1, v5}, Lorg/apache/http/HttpHost;-><init>(Ljava/lang/String;ILjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    :try_start_1
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    invoke-direct {v2, v1}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    :try_start_2
    new-instance v5, Lorg/apache/http/entity/ByteArrayEntity;

    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    invoke-direct {v5, v1}, Lorg/apache/http/entity/ByteArrayEntity;-><init>([B)V

    move-object v0, v2

    check-cast v0, Lorg/apache/http/client/methods/HttpPost;

    move-object v1, v0

    invoke-virtual {v1, v5}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    const-string v1, "Content-type"

    const-string v5, "application/octet-stream"

    invoke-interface {v2, v1, v5}, Lorg/apache/http/HttpRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1, v4, v2}, Lcom/alipay/android/app/net/MspHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;
    :try_end_2
    .catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_2} :catch_4
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    move-result-object v1

    :goto_0
    return-object v1

    :catch_0
    move-exception v1

    move-object v2, v3

    move-object v4, v3

    :goto_1
    invoke-virtual {v1}, Ljava/lang/NullPointerException;->printStackTrace()V

    :try_start_3
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1, v2, v4}, Lcom/alipay/android/app/net/MspHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    move-result-object v1

    goto :goto_0

    :catch_1
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    move-object v1, v3

    goto :goto_0

    :catch_2
    move-exception v1

    move-object v1, v3

    goto :goto_0

    :catch_3
    move-exception v1

    move-object v2, v4

    move-object v4, v3

    goto :goto_1

    :catch_4
    move-exception v1

    move-object v6, v4

    move-object v4, v2

    move-object v2, v6

    goto :goto_1
.end method

.method public sendSynchronousRequestAsHttpResponse(Ljava/lang/String;Ljava/util/ArrayList;)Lorg/apache/http/HttpResponse;
    .locals 3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lorg/apache/http/message/BasicNameValuePair;

    const-string v2, "requestData"

    invoke-direct {v1, v2, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :try_start_0
    invoke-virtual {p0, v0, p2}, Lcom/alipay/android/app/net/HttpClient;->sendSynchronousRequestAsHttpResponse(Ljava/util/ArrayList;Ljava/util/ArrayList;)Lorg/apache/http/HttpResponse;
    :try_end_0
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public sendSynchronousRequestAsHttpResponse(Ljava/util/ArrayList;Ljava/util/ArrayList;)Lorg/apache/http/HttpResponse;
    .locals 7

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/alipay/android/app/net/HttpClient;->getURL()Ljava/net/URL;

    move-result-object v2

    :try_start_0
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    if-nez v1, :cond_0

    invoke-static {}, Lcom/alipay/android/app/net/MspHttpClient;->newInstance()Lcom/alipay/android/app/net/MspHttpClient;

    move-result-object v1

    iput-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    :cond_0
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1}, Lcom/alipay/android/app/net/MspHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v1

    invoke-direct {p0}, Lcom/alipay/android/app/net/HttpClient;->getProxy()Lorg/apache/http/HttpHost;

    move-result-object v4

    const-string v5, "http.route.default-proxy"

    invoke-interface {v1, v5, v4}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    invoke-virtual {v2}, Ljava/net/URL;->getProtocol()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2}, Ljava/net/URL;->getPort()I

    move-result v1

    const/4 v4, -0x1

    if-ne v1, v4, :cond_1

    invoke-virtual {v2}, Ljava/net/URL;->getDefaultPort()I

    move-result v1

    :cond_1
    new-instance v4, Lorg/apache/http/HttpHost;

    invoke-virtual {v2}, Ljava/net/URL;->getHost()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v4, v2, v1, v5}, Lorg/apache/http/HttpHost;-><init>(Ljava/lang/String;ILjava/lang/String;)V
    :try_end_0
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_4
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3

    if-eqz p1, :cond_3

    :try_start_1
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    invoke-direct {v2, v1}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_5
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3

    :try_start_2
    new-instance v5, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v1, "utf-8"

    invoke-direct {v5, p1, v1}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    move-object v0, v2

    check-cast v0, Lorg/apache/http/client/methods/HttpPost;

    move-object v1, v0

    invoke-virtual {v1, v5}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V
    :try_end_2
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_2} :catch_6
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    :goto_0
    :try_start_3
    const-string v1, "Content-type"

    const-string v5, "application/x-www-form-urlencoded;charset=utf-8"

    invoke-interface {v2, v1, v5}, Lorg/apache/http/HttpRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Accept"

    const-string v5, "application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"

    invoke-interface {v2, v1, v5}, Lorg/apache/http/HttpRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p2, :cond_2

    invoke-virtual {p2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_1
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_4

    :cond_2
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1, v4, v2}, Lcom/alipay/android/app/net/MspHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;
    :try_end_3
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    move-result-object v1

    :goto_2
    return-object v1

    :cond_3
    :try_start_4
    new-instance v2, Lorg/apache/http/client/methods/HttpGet;

    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    invoke-direct {v2, v1}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V
    :try_end_4
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_4 .. :try_end_4} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_4 .. :try_end_4} :catch_5
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_0

    :catch_0
    move-exception v1

    new-instance v1, Ljavax/net/ssl/SSLPeerUnverifiedException;

    const-string v2, "SSL error"

    invoke-direct {v1, v2}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_4
    :try_start_5
    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lorg/apache/http/Header;

    invoke-interface {v2, v1}, Lorg/apache/http/HttpRequest;->addHeader(Lorg/apache/http/Header;)V
    :try_end_5
    .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_5 .. :try_end_5} :catch_0
    .catch Ljava/lang/NullPointerException; {:try_start_5 .. :try_end_5} :catch_1
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3

    goto :goto_1

    :catch_1
    move-exception v1

    move-object v6, v4

    move-object v4, v2

    move-object v2, v6

    :goto_3
    invoke-virtual {v1}, Ljava/lang/NullPointerException;->printStackTrace()V

    :try_start_6
    iget-object v1, p0, Lcom/alipay/android/app/net/HttpClient;->sAndroidHttpClient:Lcom/alipay/android/app/net/MspHttpClient;

    invoke-virtual {v1, v2, v4}, Lcom/alipay/android/app/net/MspHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2

    move-result-object v1

    goto :goto_2

    :catch_2
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    move-object v1, v3

    goto :goto_2

    :catch_3
    move-exception v1

    move-object v1, v3

    goto :goto_2

    :catch_4
    move-exception v1

    move-object v2, v3

    move-object v4, v3

    goto :goto_3

    :catch_5
    move-exception v1

    move-object v2, v4

    move-object v4, v3

    goto :goto_3

    :catch_6
    move-exception v1

    move-object v6, v4

    move-object v4, v2

    move-object v2, v6

    goto :goto_3
.end method

.method public setUrl(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/alipay/android/app/net/HttpClient;->mUrl:Ljava/lang/String;

    return-void
.end method
